/**
 * 
 */
package com.alstudio.module.xmpp.distributor.distributor;

import com.alstudio.pojo.module.server.ServerInfo;

/**
 * @author alonso lee
 * 
 */
public class DistributorEvent {

	// 连接分发器原因
	private String failReason;
	// 连接成功后得到的信息
	private ServerInfo checkedServerInfo;
	// 检测分发器的状态
	private CheckDistributorState checkingState;
	
	

	/**
	 * @return the failReason
	 */
	public String getFailReason() {
		return failReason;
	}



	/**
	 * @param failReason the failReason to set
	 */
	public void setFailReason(String failReason) {
		this.failReason = failReason;
	}



	/**
	 * @return the checkedServerInfo
	 */
	public ServerInfo getCheckedServerInfo() {
		return checkedServerInfo;
	}



	/**
	 * @param checkedServerInfo the checkedServerInfo to set
	 */
	public void setCheckedServerInfo(ServerInfo checkedServerInfo) {
		this.checkedServerInfo = checkedServerInfo;
	}



	/**
	 * @return the checkingState
	 */
	public CheckDistributorState getCheckingState() {
		return checkingState;
	}



	/**
	 * @param checkingState the checkingState to set
	 */
	public void setCheckingState(CheckDistributorState checkingState) {
		this.checkingState = checkingState;
	}



	public enum CheckDistributorState {
		STATE_CONNECT_SUCCESSED, STATE_CONNECT_FAILED, STATE_CONNECT_CHECK_SUCCESSED, STATE_CONNECT_CHECK_FAILED,
	}
}
